package com.jdllexample.jcom;

import jp.ne.so_net.ga2.no_ji.jcom.IDispatch;
import jp.ne.so_net.ga2.no_ji.jcom.JComException;
import jp.ne.so_net.ga2.no_ji.jcom.ReleaseManager;

/**
 * 雷同jacob，任然需要注册。
 * 1：如果有输出参数，请使用String[]
 * 官方地址：http://sourceforge.net/projects/jcom/
 * @author cklxh520@gmail.com
 */
public class TestApi {

	public static void main(String[] args) {

		ReleaseManager rm = new ReleaseManager();
		try {
			IDispatch wdApp = new IDispatch(rm, "ScriptControl");
			wdApp.put("Language", "VBScript");
			Object obj=wdApp.method("Eval", new Object[]{"1+1"});
			System.out.println(obj);
		} catch (JComException e) {
			e.printStackTrace();
		}
		
	}

}
